Fix inconsistent highlight blocks.#62951
Fix inconsistent highlight blocks.#62951tomasz-rozanski wants to merge 4 commits intorust-lang:masterfrom tomasz-rozanski:master
Conversation
|
I apologize; I wasn't very clear in the other issue. I think that only the Unicode properties/categories should be in code blocks. This documentation uses single quotes / apostrophes ( I'll attempt to comment with the lines that should not be changed. |
shepmaster
left a comment
There was a problem hiding this comment.
It was easier to mark the ones to keep, except a few places where I wanted to be extra precise.
| } | ||
|
|
||
| /// Returns `true` if this `char` satisfies the 'XID_Start' Unicode property, and false | ||
| /// Returns `true` if this `char` satisfies the `XID_Start` Unicode property, and false |
There was a problem hiding this comment.
I think it's clearer when reading the documentation to highlight this with backticks and it does refer to something which is code-like. At least if not with backticks it would be good to use 'XID_Start' to highlight more.
There was a problem hiding this comment.
"Keep" means "keep the change to backticks".
| /// otherwise. | ||
| /// | ||
| /// 'XID_Start' is a Unicode Derived Property specified in | ||
| /// `XID_Start` is a Unicode Derived Property specified in |
| } | ||
|
|
||
| /// Returns `true` if this `char` satisfies the 'XID_Continue' Unicode property, and false | ||
| /// Returns `true` if this `char` satisfies the `XID_Continue` Unicode property, and false |
| /// otherwise. | ||
| /// | ||
| /// 'XID_Continue' is a Unicode Derived Property specified in | ||
| /// `XID_Continue` is a Unicode Derived Property specified in |
| /// `XID_Continue` is a Unicode Derived Property specified in | ||
| /// [UAX #31](http://unicode.org/reports/tr31/#NFKC_Modifications), | ||
| /// mostly similar to 'ID_Continue' but modified for closure under NFKx. | ||
| /// mostly similar to `ID_Continue` but modified for closure under NFKx. |
src/libcore/char/methods.rs
Outdated
| /// | ||
| /// 'Alphanumeric'-ness is defined in terms of the Unicode General Categories | ||
| /// 'Nd', 'Nl', 'No' and the Derived Core Property 'Alphabetic'. | ||
| /// `Alphanumeric`-ness is defined in terms of the Unicode General Categories |
| /// 'Alphanumeric'-ness is defined in terms of the Unicode General Categories | ||
| /// 'Nd', 'Nl', 'No' and the Derived Core Property 'Alphabetic'. | ||
| /// `Alphanumeric`-ness is defined in terms of the Unicode General Categories | ||
| /// `Nd`, `Nl`, `No` and the Derived Core Property `Alphabetic`. |
src/libcore/char/methods.rs
Outdated
| /// | ||
| /// 'Numeric'-ness is defined in terms of the Unicode General Categories | ||
| /// 'Nd', 'Nl', 'No'. | ||
| /// `Numeric`-ness is defined in terms of the Unicode General Categories |
| /// 'Numeric'-ness is defined in terms of the Unicode General Categories | ||
| /// 'Nd', 'Nl', 'No'. | ||
| /// `Numeric`-ness is defined in terms of the Unicode General Categories | ||
| /// `Nd`, `Nl`, `No`. |
|
So all the changes you didn't quote above, I should also revert? |
Yes please. Basically, the things that should be in backticks are the terms specifically referring to a specific Unicode concept. |
|
I think I nailed it this time. Fingers crossed. |
Can you please squash the commits? We prefer not to have merge commits in our history. |
I'm sorry, but it seems that I can't do this anymore. I tried to rebase my local repository, but with no success. I also couldn't find that kind of option on GitHub. I'm pretty new to Git, so maybe I'm missing something obvious. |
|
@Rosto75 Can you try |
After calling and then tried with No visible effects, after pushing it. In the meantime, I managed to create an extra, empty commit, so it's even a bigger mess now. Maybe I should start from scratch. |
|
Third time's a charm #62977 |
r? @shepmaster